package com.itheima_02;

public class ThreadTest02 {
    public static void main(String[] args) {
        MyRunnable  m1 = new MyRunnable();
         Thread t1 = new Thread(m1);
         t1.setName("线程1");
         Thread t2 = new Thread(m1);
         t2.setName("线程2");

         t1.start();
         t2.start();
    }
}
